package edu.upb.acs.jobsmaps.database.task;

import android.os.AsyncTask;
import edu.upb.acs.jobsmaps.database.mysql.ExternalDatabaseHelper;
import edu.upb.acs.jobsmaps.entity.Job;

import java.util.Collection;

public class SearchJobsTask extends AsyncTask<String, Void, Collection<Job>> {
    @Override
    protected Collection<Job> doInBackground(String... params) {
		String searchCriteria = params[0];
		String searchWord = params[1];
        String searchProfile = params[2];

        return  ExternalDatabaseHelper.searchJobs(searchCriteria, searchWord, searchProfile);
    }
}
